package com.sxjh.entity.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Map;

@Data
public class ScaleReportParam {

  @ApiModelProperty("开始时间")
  @NotNull(message = "开始时间不能为空")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime startDate;

  @ApiModelProperty("结束时间")
  @NotNull(message = "结束时间")
  @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
  private LocalDateTime endDate;
  /* 方式 0进厂时间 1出厂时间*/
  @ApiModelProperty("时间方式")
  private Integer way;
  @ApiModelProperty("物料大类ID")
  private Integer categoryId;
  @ApiModelProperty("车牌号")
  private String carNumber;

  @ApiModelProperty("客户名称")
  private String companyName;

  @ApiModelProperty("物料名称")
  private String productName;

  @ApiModelProperty("仓库")
  private String warehouseName;

  @ApiModelProperty("仓库人员")
  private String wuserName;

  @ApiModelProperty("承运商名称")
  private String carriersName;

  @ApiModelProperty("磅单编号")
  private String weightNo;

  @ApiModelProperty("排放阶段")
  private Integer dischargeStage;

  @ApiModelProperty("当前页")
  private int curr;

  @ApiModelProperty("显示行数")
  private int pageSize;

  @ApiModelProperty("排序类型")
  private String sortOrder;

  @ApiModelProperty("排序字段属性")
  private String sortField;

  @ApiModelProperty("过滤条件")
  private Map<String, String> filterParamMap;

  @ApiModelProperty("是否查询合计数，true-是")
  private Boolean isQueryTotal;

  /**
   * 0：表示只存单单个
   * 1：表示供应商和承运商都存在
   */
  @ApiModelProperty("供应商查询方式")
  private Integer supplierQM;

}
